package com.hqyj.module.leave.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.module.leave.pojo.Result;
import com.hqyj.module.leave.pojo.SearchBean;
import com.hqyj.module.leave.pojo.HolidayInfo;


/**
 * @author ：hyj
 * @description：LeaveInfoService
 * @date ：2021/9/28 15:03
 */

public interface HolidayInfoService {

    HolidayInfo getHolidayInfo(Integer userId);

    PageInfo<HolidayInfo> getAllHolidayInfo(SearchBean searchBean);

    Result<HolidayInfo> insertHolidayInfo(HolidayInfo holidayInfo);

    Result<HolidayInfo> leaderUpdateHolidayInfo(HolidayInfo holidayInfo);

    Result<Object> deleteHolidayInfo(int id);

    Result<HolidayInfo> updateHolidayInfo(HolidayInfo holidayInfo);
}
